<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>圆的面积和周长计算</title>
    <style>
        body {
            background-color: lightblue;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        h2 {
            text-align: center;
            color: darkblue;
        }
        table {
            margin: 0 auto;
            border-collapse: collapse;
            width: 400px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
        td {
            padding: 10px;
            text-align: left;
        }
        input[type="text"] {
            border: 1px solid #ccc;
            border-radius: 4px;
            width: 90%;
            padding: 8px;
            box-sizing: border-box;
        }
        input[type="submit"], input[type="reset"] {
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 10px;
            cursor: pointer;
            width: 45%;
            margin: 5px 2%;
            transition: background-color 0.3s;
        }
        input[type="submit"]:hover, input[type="reset"]:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<h2>圆的面积和周长计算</h2>
<form action="CircleAreaServlet" method="get">
    <table>
        <tr>
            <td>请输入圆的半径：</td>
            <td><input type="text" name="radius" required /></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" value="计算" />
                <input type="reset" value="重置" />
            </td>
        </tr>
    </table>
</form>
</body>
</html>